.class public Lcom/esfile/screen/recorder/picture/ui/MosaicView;
.super Landroid/view/ViewGroup;
.source "MosaicView.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;,
        Lcom/esfile/screen/recorder/picture/ui/MosaicView$b;,
        Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;,
        Lcom/esfile/screen/recorder/picture/ui/MosaicView$Effect;
    }
.end annotation


# instance fields
.field private A:Landroid/graphics/Bitmap;

.field private B:Landroid/graphics/Canvas;

.field private C:Landroid/graphics/Paint;

.field private D:Landroid/graphics/Paint;

.field private E:Z

.field private F:Z

.field private G:Lcom/esfile/screen/recorder/picture/ui/MosaicView$b;

.field private H:Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;

.field private I:D

.field private J:Landroid/graphics/PointF;

.field private K:F

.field private L:F

.field private M:F

.field private N:F

.field private O:F

.field private P:F

.field private Q:F

.field private R:F

.field private S:F

.field private T:F

.field private U:Z

.field private V:Landroid/graphics/PointF;

.field private W:Lcom/esfile/screen/recorder/media/util/y;

.field private a:I

.field private b:I

.field private c:Landroid/graphics/Bitmap;

.field private d:Landroid/graphics/Bitmap;

.field private e:Landroid/graphics/Canvas;

.field private f:Landroid/graphics/Paint;

.field private g:Landroid/graphics/Paint;

.field private h:Landroid/graphics/Paint;

.field private i:Landroid/graphics/Bitmap;

.field private j:I

.field private k:I

.field private l:I

.field private m:I

.field private n:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Effect;

.field private o:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;

.field private p:Landroid/graphics/Paint;

.field private q:Landroid/graphics/RectF;

.field private r:I

.field private s:Landroid/graphics/Path;

.field private t:Landroid/graphics/Matrix;

.field private u:Z

.field private v:I

.field private w:I

.field private x:I

.field private final y:Ljava/lang/Object;

.field private z:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    .line 2
    invoke-direct {p0, p1, p2}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 3
    new-instance p1, Landroid/graphics/Matrix;

    invoke-direct {p1}, Landroid/graphics/Matrix;-><init>()V

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->t:Landroid/graphics/Matrix;

    const/4 p1, -0x1

    .line 4
    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->w:I

    .line 5
    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->x:I

    .line 6
    new-instance p1, Ljava/lang/Object;

    invoke-direct {p1}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->y:Ljava/lang/Object;

    const/4 p1, 0x0

    .line 7
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->z:Z

    .line 8
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->E:Z

    .line 9
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->F:Z

    .line 10
    new-instance p2, Landroid/graphics/PointF;

    const/high16 v0, -0x40800000    # -1.0f

    invoke-direct {p2, v0, v0}, Landroid/graphics/PointF;-><init>(FF)V

    iput-object p2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->J:Landroid/graphics/PointF;

    .line 11
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->U:Z

    .line 12
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->g()V

    .line 13
    sget-object p1, Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;->NONE:Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->setState(Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;)V

    return-void
.end method

.method private a(I)I
    .locals 2

    .line 46
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v0

    .line 47
    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    int-to-float p1, p1

    .line 48
    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    const/4 v1, 0x1

    .line 49
    invoke-static {v1, p1, v0}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result p1

    invoke-static {p1}, Ljava/lang/Math;->round(F)I

    move-result p1

    return p1
.end method

.method private a(F)V
    .locals 7

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->t:Landroid/graphics/Matrix;

    invoke-virtual {v0}, Landroid/graphics/Matrix;->reset()V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->t:Landroid/graphics/Matrix;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    invoke-virtual {v0, v1, v1}, Landroid/graphics/Matrix;->postScale(FF)Z

    .line 7
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    int-to-float v0, v0

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    mul-float v0, v0, v1

    .line 8
    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    int-to-float v2, v2

    mul-float v2, v2, v1

    .line 9
    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->M:F

    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->W:Lcom/esfile/screen/recorder/media/util/y;

    invoke-virtual {v3}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v3

    int-to-float v3, v3

    const/high16 v4, 0x40000000    # 2.0f

    const/high16 v5, 0x3f800000    # 1.0f

    cmpg-float v1, v1, v3

    if-gez v1, :cond_0

    .line 10
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->W:Lcom/esfile/screen/recorder/media/util/y;

    invoke-virtual {v1}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v1

    int-to-float v1, v1

    sub-float/2addr v1, v0

    div-float/2addr v1, v4

    goto :goto_0

    .line 11
    :cond_0
    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->P:F

    mul-float v1, v1, p1

    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->J:Landroid/graphics/PointF;

    iget v3, v3, Landroid/graphics/PointF;->x:F

    sub-float v6, v5, p1

    mul-float v3, v3, v6

    add-float/2addr v1, v3

    .line 12
    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->R:F

    cmpl-float v6, v1, v3

    if-lez v6, :cond_1

    move v1, v3

    goto :goto_0

    .line 13
    :cond_1
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->W:Lcom/esfile/screen/recorder/media/util/y;

    invoke-virtual {v3}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v3

    int-to-float v3, v3

    iget v6, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->R:F

    sub-float/2addr v3, v6

    sub-float/2addr v3, v1

    cmpl-float v3, v3, v0

    if-lez v3, :cond_2

    .line 14
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->W:Lcom/esfile/screen/recorder/media/util/y;

    invoke-virtual {v1}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v1

    int-to-float v1, v1

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->R:F

    sub-float/2addr v1, v3

    sub-float/2addr v1, v0

    .line 15
    :cond_2
    :goto_0
    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->N:F

    iget-object v6, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->W:Lcom/esfile/screen/recorder/media/util/y;

    invoke-virtual {v6}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result v6

    int-to-float v6, v6

    cmpg-float v3, v3, v6

    if-gez v3, :cond_3

    .line 16
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->W:Lcom/esfile/screen/recorder/media/util/y;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result p1

    int-to-float p1, p1

    sub-float/2addr p1, v2

    div-float/2addr p1, v4

    goto :goto_1

    .line 17
    :cond_3
    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->O:F

    mul-float v3, v3, p1

    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->J:Landroid/graphics/PointF;

    iget v4, v4, Landroid/graphics/PointF;->y:F

    sub-float/2addr v5, p1

    mul-float v4, v4, v5

    add-float p1, v3, v4

    .line 18
    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->Q:F

    cmpl-float v4, p1, v3

    if-lez v4, :cond_4

    move p1, v3

    goto :goto_1

    .line 19
    :cond_4
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->W:Lcom/esfile/screen/recorder/media/util/y;

    invoke-virtual {v3}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result v3

    int-to-float v3, v3

    iget v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->Q:F

    sub-float/2addr v3, v4

    sub-float/2addr v3, p1

    cmpl-float v3, v3, v2

    if-lez v3, :cond_5

    .line 20
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->W:Lcom/esfile/screen/recorder/media/util/y;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result p1

    int-to-float p1, p1

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->Q:F

    sub-float/2addr p1, v3

    sub-float/2addr p1, v2

    .line 21
    :cond_5
    :goto_1
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->t:Landroid/graphics/Matrix;

    invoke-virtual {v3, v1, p1}, Landroid/graphics/Matrix;->postTranslate(FF)Z

    .line 22
    iput v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->P:F

    .line 23
    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->O:F

    .line 24
    iput v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->M:F

    .line 25
    iput v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->N:F

    return-void
.end method

.method private a(IFF)V
    .locals 2

    .line 32
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    if-lez v0, :cond_5

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    if-gtz v0, :cond_0

    goto :goto_0

    .line 33
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->V:Landroid/graphics/PointF;

    if-nez v0, :cond_1

    .line 34
    new-instance v0, Landroid/graphics/PointF;

    invoke-direct {v0}, Landroid/graphics/PointF;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->V:Landroid/graphics/PointF;

    .line 35
    invoke-virtual {v0, p2, p3}, Landroid/graphics/PointF;->set(FF)V

    .line 36
    new-instance v0, Landroid/graphics/Path;

    invoke-direct {v0}, Landroid/graphics/Path;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->s:Landroid/graphics/Path;

    .line 37
    invoke-virtual {v0, p2, p3}, Landroid/graphics/Path;->moveTo(FF)V

    :cond_1
    const/4 v0, 0x2

    if-ne p1, v0, :cond_2

    .line 38
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->s:Landroid/graphics/Path;

    invoke-virtual {p1, p2, p3}, Landroid/graphics/Path;->lineTo(FF)V

    .line 39
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->e:Landroid/graphics/Canvas;

    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->s:Landroid/graphics/Path;

    iget-object p3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->h:Landroid/graphics/Paint;

    invoke-virtual {p1, p2, p3}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V

    .line 40
    invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V

    goto :goto_0

    :cond_2
    const/4 v0, 0x1

    if-eq p1, v0, :cond_3

    const/4 v1, 0x3

    if-ne p1, v1, :cond_5

    .line 41
    :cond_3
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->V:Landroid/graphics/PointF;

    iget v1, p1, Landroid/graphics/PointF;->x:F

    cmpl-float p2, v1, p2

    if-nez p2, :cond_4

    iget p1, p1, Landroid/graphics/PointF;->y:F

    cmpl-float p2, p1, p3

    if-nez p2, :cond_4

    .line 42
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->e:Landroid/graphics/Canvas;

    iget-object p3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->h:Landroid/graphics/Paint;

    invoke-virtual {p2, v1, p1, p3}, Landroid/graphics/Canvas;->drawPoint(FFLandroid/graphics/Paint;)V

    :cond_4
    const/4 p1, 0x0

    .line 43
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->V:Landroid/graphics/PointF;

    .line 44
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->s:Landroid/graphics/Path;

    .line 45
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->U:Z

    :cond_5
    :goto_0
    return-void
.end method

.method private a(Landroid/view/MotionEvent;)V
    .locals 4

    const/4 v0, 0x0

    .line 26
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getX(I)F

    move-result v1

    .line 27
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F

    move-result v0

    const/4 v2, 0x1

    .line 28
    invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getX(I)F

    move-result v3

    .line 29
    invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getY(I)F

    move-result p1

    .line 30
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->J:Landroid/graphics/PointF;

    add-float/2addr v1, v3

    const/high16 v3, 0x40000000    # 2.0f

    div-float/2addr v1, v3

    iput v1, v2, Landroid/graphics/PointF;->x:F

    add-float/2addr v0, p1

    div-float/2addr v0, v3

    .line 31
    iput v0, v2, Landroid/graphics/PointF;->y:F

    return-void
.end method

.method private b(IFF)V
    .locals 5

    .line 41
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->V:Landroid/graphics/PointF;

    if-nez v0, :cond_0

    .line 42
    new-instance v0, Landroid/graphics/PointF;

    invoke-direct {v0}, Landroid/graphics/PointF;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->V:Landroid/graphics/PointF;

    .line 43
    invoke-virtual {v0, p2, p3}, Landroid/graphics/PointF;->set(FF)V

    .line 44
    new-instance v0, Landroid/graphics/RectF;

    invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->q:Landroid/graphics/RectF;

    move v0, p3

    move v1, v0

    move p3, p2

    goto :goto_4

    .line 45
    :cond_0
    iget v0, v0, Landroid/graphics/PointF;->x:F

    cmpg-float v1, v0, p2

    if-gez v1, :cond_1

    goto :goto_0

    :cond_1
    move v0, p2

    .line 46
    :goto_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->V:Landroid/graphics/PointF;

    iget v1, v1, Landroid/graphics/PointF;->y:F

    cmpg-float v2, v1, p3

    if-gez v2, :cond_2

    goto :goto_1

    :cond_2
    move v1, p3

    .line 47
    :goto_1
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->V:Landroid/graphics/PointF;

    iget v2, v2, Landroid/graphics/PointF;->x:F

    cmpl-float v3, p2, v2

    if-lez v3, :cond_3

    goto :goto_2

    :cond_3
    move p2, v2

    .line 48
    :goto_2
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->V:Landroid/graphics/PointF;

    iget v2, v2, Landroid/graphics/PointF;->y:F

    cmpl-float v3, p3, v2

    if-lez v3, :cond_4

    goto :goto_3

    :cond_4
    move p3, v2

    :goto_3
    move v4, p3

    move p3, p2

    move p2, v0

    move v0, v4

    .line 49
    :goto_4
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->q:Landroid/graphics/RectF;

    invoke-virtual {v2, p2, v1, p3, v0}, Landroid/graphics/RectF;->set(FFFF)V

    const/4 p2, 0x1

    if-eq p1, p2, :cond_5

    const/4 p2, 0x3

    if-ne p1, p2, :cond_6

    .line 50
    :cond_5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->n()V

    const/4 p1, 0x0

    .line 51
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->q:Landroid/graphics/RectF;

    .line 52
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->V:Landroid/graphics/PointF;

    .line 53
    :cond_6
    invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V

    return-void
.end method

.method private b(Landroid/view/MotionEvent;)V
    .locals 7

    .line 1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I

    move-result v0

    const/4 v1, 0x2

    const/4 v2, 0x1

    if-eq v0, v1, :cond_1

    const/4 v1, 0x5

    if-eq v0, v1, :cond_0

    goto/16 :goto_4

    .line 2
    :cond_0
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getPointerCount()I

    move-result v0

    if-le v0, v2, :cond_c

    .line 3
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->c(Landroid/view/MotionEvent;)D

    move-result-wide v0

    iput-wide v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->I:D

    .line 4
    sget-object p1, Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;->START_ZOOM:Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->setState(Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;)V

    const/4 p1, 0x0

    .line 5
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->s:Landroid/graphics/Path;

    .line 6
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->q:Landroid/graphics/RectF;

    .line 7
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->V:Landroid/graphics/PointF;

    goto/16 :goto_4

    .line 8
    :cond_1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getPointerCount()I

    move-result v0

    if-le v0, v2, :cond_c

    const/4 v0, 0x0

    .line 9
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getX(I)F

    move-result v1

    invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getX(I)F

    move-result v3

    add-float/2addr v1, v3

    const/high16 v3, 0x40000000    # 2.0f

    div-float/2addr v1, v3

    .line 10
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F

    move-result v4

    invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getY(I)F

    move-result v5

    add-float/2addr v4, v5

    div-float/2addr v4, v3

    .line 11
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->J:Landroid/graphics/PointF;

    iget v5, v3, Landroid/graphics/PointF;->x:F

    const/high16 v6, -0x40800000    # -1.0f

    cmpl-float v5, v5, v6

    if-nez v5, :cond_2

    iget v3, v3, Landroid/graphics/PointF;->y:F

    cmpl-float v3, v3, v6

    if-nez v3, :cond_2

    .line 12
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a(Landroid/view/MotionEvent;)V

    .line 13
    :cond_2
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->J:Landroid/graphics/PointF;

    iget v5, v3, Landroid/graphics/PointF;->x:F

    sub-float/2addr v1, v5

    iput v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->K:F

    .line 14
    iget v3, v3, Landroid/graphics/PointF;->y:F

    sub-float/2addr v4, v3

    iput v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->L:F

    .line 15
    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->P:F

    add-float/2addr v3, v1

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->R:F

    const/4 v4, 0x0

    cmpl-float v1, v3, v1

    if-lez v1, :cond_3

    .line 16
    iput v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->K:F

    goto :goto_0

    .line 17
    :cond_3
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->W:Lcom/esfile/screen/recorder/media/util/y;

    invoke-virtual {v1}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v1

    int-to-float v1, v1

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->R:F

    sub-float/2addr v1, v3

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->P:F

    iget v5, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->K:F

    add-float/2addr v3, v5

    sub-float/2addr v1, v3

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->M:F

    cmpl-float v1, v1, v3

    if-lez v1, :cond_4

    .line 18
    iput v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->K:F

    .line 19
    :cond_4
    :goto_0
    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->O:F

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->L:F

    add-float/2addr v1, v3

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->Q:F

    cmpl-float v1, v1, v3

    if-lez v1, :cond_5

    .line 20
    iput v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->L:F

    goto :goto_1

    .line 21
    :cond_5
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->W:Lcom/esfile/screen/recorder/media/util/y;

    invoke-virtual {v1}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result v1

    int-to-float v1, v1

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->Q:F

    sub-float/2addr v1, v3

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->O:F

    iget v5, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->L:F

    add-float/2addr v3, v5

    sub-float/2addr v1, v3

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->N:F

    cmpl-float v1, v1, v3

    if-lez v1, :cond_6

    .line 22
    iput v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->L:F

    .line 23
    :cond_6
    :goto_1
    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    .line 24
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a(Landroid/view/MotionEvent;)V

    .line 25
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->c(Landroid/view/MotionEvent;)D

    move-result-wide v3

    .line 26
    sget-object p1, Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;->ZOOM_AND_MOVE:Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->setState(Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;)V

    .line 27
    iget-wide v5, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->I:D

    const/high16 p1, 0x40800000    # 4.0f

    cmpl-double v1, v3, v5

    if-lez v1, :cond_7

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    iget v5, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->S:F

    mul-float v5, v5, p1

    cmpg-float v1, v1, v5

    if-ltz v1, :cond_8

    :cond_7
    iget-wide v5, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->I:D

    cmpg-double v1, v3, v5

    if-gtz v1, :cond_b

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    iget v5, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->S:F

    cmpl-float v1, v1, v5

    if-lez v1, :cond_b

    .line 28
    :cond_8
    iget-wide v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->I:D

    div-double v0, v3, v0

    double-to-float v0, v0

    .line 29
    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    mul-float v1, v1, v0

    iput v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    .line 30
    iget v5, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->S:F

    mul-float v6, v5, p1

    cmpl-float v6, v1, v6

    if-lez v6, :cond_9

    mul-float v5, v5, p1

    .line 31
    iput v5, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    goto :goto_2

    :cond_9
    cmpg-float p1, v1, v5

    if-gez p1, :cond_a

    .line 32
    iput v5, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    .line 33
    :cond_a
    :goto_2
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    .line 34
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->h()V

    .line 35
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a(F)V

    move-object v0, p1

    goto :goto_3

    .line 36
    :cond_b
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->h()V

    .line 37
    :goto_3
    invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V

    .line 38
    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-eqz p1, :cond_c

    .line 39
    iput-wide v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->I:D

    :cond_c
    :goto_4
    return-void
.end method

.method private c(Landroid/view/MotionEvent;)D
    .locals 4

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getX(I)F

    move-result v1

    const/4 v2, 0x1

    invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getX(I)F

    move-result v3

    sub-float/2addr v1, v3

    invoke-static {v1}, Ljava/lang/Math;->abs(F)F

    move-result v1

    .line 3
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F

    move-result v0

    invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getY(I)F

    move-result p1

    sub-float/2addr v0, p1

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result p1

    mul-float v1, v1, v1

    mul-float p1, p1, p1

    add-float/2addr v1, p1

    float-to-double v0, v1

    .line 4
    invoke-static {v0, v1}, Ljava/lang/Math;->sqrt(D)D

    move-result-wide v0

    return-wide v0
.end method

.method private c(IFF)V
    .locals 2

    .line 5
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    if-lez v0, :cond_5

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    if-gtz v0, :cond_0

    goto :goto_0

    .line 6
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->V:Landroid/graphics/PointF;

    if-nez v0, :cond_1

    .line 7
    new-instance v0, Landroid/graphics/PointF;

    invoke-direct {v0}, Landroid/graphics/PointF;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->V:Landroid/graphics/PointF;

    .line 8
    invoke-virtual {v0, p2, p3}, Landroid/graphics/PointF;->set(FF)V

    .line 9
    new-instance v0, Landroid/graphics/Path;

    invoke-direct {v0}, Landroid/graphics/Path;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->s:Landroid/graphics/Path;

    .line 10
    invoke-virtual {v0, p2, p3}, Landroid/graphics/Path;->moveTo(FF)V

    :cond_1
    const/4 v0, 0x2

    if-ne p1, v0, :cond_2

    .line 11
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->s:Landroid/graphics/Path;

    invoke-virtual {p1, p2, p3}, Landroid/graphics/Path;->lineTo(FF)V

    .line 12
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->o()V

    .line 13
    invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V

    goto :goto_0

    :cond_2
    const/4 v0, 0x1

    if-eq p1, v0, :cond_3

    const/4 v1, 0x3

    if-ne p1, v1, :cond_5

    .line 14
    :cond_3
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->V:Landroid/graphics/PointF;

    iget v1, p1, Landroid/graphics/PointF;->x:F

    cmpl-float p2, v1, p2

    if-nez p2, :cond_4

    iget p1, p1, Landroid/graphics/PointF;->y:F

    cmpl-float p1, p1, p3

    if-nez p1, :cond_4

    .line 15
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->f:Landroid/graphics/Paint;

    const/4 p2, 0x0

    invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 16
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->e:Landroid/graphics/Canvas;

    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->V:Landroid/graphics/PointF;

    iget p3, p2, Landroid/graphics/PointF;->x:F

    iget p2, p2, Landroid/graphics/PointF;->y:F

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->f:Landroid/graphics/Paint;

    invoke-virtual {p1, p3, p2, v1}, Landroid/graphics/Canvas;->drawPoint(FFLandroid/graphics/Paint;)V

    :cond_4
    const/4 p1, 0x0

    .line 17
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->V:Landroid/graphics/PointF;

    .line 18
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->s:Landroid/graphics/Path;

    .line 19
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->U:Z

    :cond_5
    :goto_0
    return-void
.end method

.method private f()V
    .locals 4

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    if-lez v0, :cond_2

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    if-gtz v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->e:Landroid/graphics/Canvas;

    if-nez v0, :cond_1

    return-void

    .line 3
    :cond_1
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->i:Landroid/graphics/Bitmap;

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-virtual {v0, v1, v3, v3, v2}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    :cond_2
    :goto_0
    return-void
.end method

.method private g()V
    .locals 3

    const/4 v0, 0x1

    .line 1
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->u:Z

    const/4 v1, 0x6

    .line 2
    iput v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->l:I

    const v2, -0xd5a356

    .line 3
    iput v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->m:I

    const/16 v2, 0x14

    .line 4
    invoke-direct {p0, v2}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a(I)I

    move-result v2

    iput v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->k:I

    const/4 v2, 0x5

    .line 5
    invoke-direct {p0, v2}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a(I)I

    move-result v2

    iput v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->j:I

    .line 6
    iput v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->v:I

    const/high16 v1, 0x3f800000    # 1.0f

    .line 7
    iput v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    .line 8
    new-instance v1, Landroid/graphics/Paint;

    invoke-direct {v1}, Landroid/graphics/Paint;-><init>()V

    iput-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->p:Landroid/graphics/Paint;

    .line 9
    invoke-virtual {v1, v0}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 10
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->p:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 11
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->p:Landroid/graphics/Paint;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->l:I

    int-to-float v1, v1

    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    div-float/2addr v1, v2

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 12
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->p:Landroid/graphics/Paint;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->m:I

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    const/4 v0, 0x0

    .line 13
    invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->setWillNotDraw(Z)V

    .line 14
    sget-object v0, Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;->PATH:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->o:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;

    .line 15
    sget-object v0, Lcom/esfile/screen/recorder/picture/ui/MosaicView$Effect;->GRID:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Effect;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->n:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Effect;

    const v0, -0x777778

    .line 16
    iput v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->r:I

    return-void
.end method

.method private getBlurMosaic()Landroid/graphics/Bitmap;
    .locals 5

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    if-lez v0, :cond_1

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    if-gtz v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    invoke-static {v0}, Lcom/esfile/screen/recorder/utils/d;->a(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 3
    new-instance v1, Landroid/graphics/Canvas;

    invoke-direct {v1, v0}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 4
    new-instance v2, Landroid/graphics/Paint;

    invoke-direct {v2}, Landroid/graphics/Paint;-><init>()V

    const/4 v3, 0x1

    .line 5
    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 6
    new-instance v3, Landroid/graphics/PorterDuffXfermode;

    sget-object v4, Landroid/graphics/PorterDuff$Mode;->DST_IN:Landroid/graphics/PorterDuff$Mode;

    invoke-direct {v3, v4}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    const/16 v3, 0xff

    .line 7
    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 8
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    const/4 v4, 0x0

    invoke-virtual {v1, v3, v4, v4, v2}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 9
    invoke-virtual {v1}, Landroid/graphics/Canvas;->save()I

    return-object v0

    :cond_1
    :goto_0
    const/4 v0, 0x0

    return-object v0
.end method

.method private getColorMosaic()Landroid/graphics/Bitmap;
    .locals 6

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    if-lez v0, :cond_1

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    if-gtz v1, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    sget-object v2, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v0, v1, v2}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 3
    new-instance v1, Landroid/graphics/Canvas;

    invoke-direct {v1, v0}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 4
    new-instance v2, Landroid/graphics/Rect;

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    iget v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    const/4 v5, 0x0

    invoke-direct {v2, v5, v5, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 5
    new-instance v3, Landroid/graphics/Paint;

    invoke-direct {v3}, Landroid/graphics/Paint;-><init>()V

    .line 6
    iget v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->r:I

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setColor(I)V

    .line 7
    invoke-virtual {v1, v2, v3}, Landroid/graphics/Canvas;->drawRect(Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 8
    invoke-virtual {v3}, Landroid/graphics/Paint;->reset()V

    .line 9
    new-instance v2, Landroid/graphics/PorterDuffXfermode;

    sget-object v4, Landroid/graphics/PorterDuff$Mode;->DST_IN:Landroid/graphics/PorterDuff$Mode;

    invoke-direct {v2, v4}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {v3, v2}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    const/16 v2, 0xff

    .line 10
    invoke-virtual {v3, v2}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 11
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    const/4 v4, 0x0

    invoke-virtual {v1, v2, v4, v4, v3}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 12
    invoke-virtual {v1}, Landroid/graphics/Canvas;->save()I

    return-object v0

    :cond_1
    :goto_0
    const/4 v0, 0x0

    return-object v0
.end method

.method private getGridMosaic()Landroid/graphics/Bitmap;
    .locals 14

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    if-lez v0, :cond_5

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    if-gtz v1, :cond_0

    goto/16 :goto_2

    .line 2
    :cond_0
    sget-object v2, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v0, v1, v2}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 3
    new-instance v1, Landroid/graphics/Canvas;

    invoke-direct {v1, v0}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 4
    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    int-to-float v2, v2

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->j:I

    int-to-float v3, v3

    div-float/2addr v2, v3

    float-to-double v2, v2

    invoke-static {v2, v3}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v2

    double-to-int v2, v2

    .line 5
    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    int-to-float v3, v3

    iget v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->j:I

    int-to-float v4, v4

    div-float/2addr v3, v4

    float-to-double v3, v3

    invoke-static {v3, v4}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v3

    double-to-int v3, v3

    .line 6
    new-instance v4, Landroid/graphics/Paint;

    invoke-direct {v4}, Landroid/graphics/Paint;-><init>()V

    const/4 v5, 0x1

    .line 7
    invoke-virtual {v4, v5}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 8
    new-instance v5, Landroid/graphics/Rect;

    invoke-direct {v5}, Landroid/graphics/Rect;-><init>()V

    const/4 v6, 0x0

    const/4 v7, 0x0

    :goto_0
    if-ge v7, v2, :cond_4

    const/4 v8, 0x0

    :goto_1
    if-ge v8, v3, :cond_3

    .line 9
    iget v9, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->j:I

    mul-int v10, v9, v7

    mul-int v11, v9, v8

    add-int/2addr v9, v10

    .line 10
    iget v12, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    if-le v9, v12, :cond_1

    move v9, v12

    .line 11
    :cond_1
    iget v12, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->j:I

    add-int/2addr v12, v11

    .line 12
    iget v13, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    if-le v12, v13, :cond_2

    move v12, v13

    .line 13
    :cond_2
    iget-object v13, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    invoke-virtual {v13, v10, v11}, Landroid/graphics/Bitmap;->getPixel(II)I

    move-result v13

    .line 14
    invoke-virtual {v5, v10, v11, v9, v12}, Landroid/graphics/Rect;->set(IIII)V

    .line 15
    invoke-virtual {v4, v13}, Landroid/graphics/Paint;->setColor(I)V

    .line 16
    invoke-virtual {v1, v5, v4}, Landroid/graphics/Canvas;->drawRect(Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    add-int/lit8 v8, v8, 0x1

    goto :goto_1

    :cond_3
    add-int/lit8 v7, v7, 0x1

    goto :goto_0

    .line 17
    :cond_4
    new-instance v2, Landroid/graphics/PorterDuffXfermode;

    sget-object v3, Landroid/graphics/PorterDuff$Mode;->DST_IN:Landroid/graphics/PorterDuff$Mode;

    invoke-direct {v2, v3}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {v4, v2}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    const/16 v2, 0xff

    .line 18
    invoke-virtual {v4, v2}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 19
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 20
    invoke-virtual {v1}, Landroid/graphics/Canvas;->save()I

    return-object v0

    :cond_5
    :goto_2
    const/4 v0, 0x0

    return-object v0
.end method

.method private getMosaicLayer()Landroid/graphics/Bitmap;
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->n:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Effect;

    sget-object v1, Lcom/esfile/screen/recorder/picture/ui/MosaicView$Effect;->GRID:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Effect;

    if-ne v0, v1, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->getGridMosaic()Landroid/graphics/Bitmap;

    move-result-object v0

    goto :goto_0

    .line 3
    :cond_0
    sget-object v1, Lcom/esfile/screen/recorder/picture/ui/MosaicView$Effect;->COLOR:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Effect;

    if-ne v0, v1, :cond_1

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->getColorMosaic()Landroid/graphics/Bitmap;

    move-result-object v0

    goto :goto_0

    .line 5
    :cond_1
    sget-object v1, Lcom/esfile/screen/recorder/picture/ui/MosaicView$Effect;->BLUR:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Effect;

    if-ne v0, v1, :cond_2

    .line 6
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->getBlurMosaic()Landroid/graphics/Bitmap;

    move-result-object v0

    goto :goto_0

    .line 7
    :cond_2
    sget-object v1, Lcom/esfile/screen/recorder/picture/ui/MosaicView$Effect;->OVAL:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Effect;

    if-ne v0, v1, :cond_3

    .line 8
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->getOvalMosaic()Landroid/graphics/Bitmap;

    move-result-object v0

    goto :goto_0

    :cond_3
    const/4 v0, 0x0

    :goto_0
    return-object v0
.end method

.method private getOvalMosaic()Landroid/graphics/Bitmap;
    .locals 14

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    if-lez v0, :cond_5

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    if-gtz v1, :cond_0

    goto/16 :goto_2

    .line 2
    :cond_0
    sget-object v2, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v0, v1, v2}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 3
    new-instance v1, Landroid/graphics/Canvas;

    invoke-direct {v1, v0}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 4
    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    int-to-float v2, v2

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->j:I

    int-to-float v3, v3

    div-float/2addr v2, v3

    float-to-double v2, v2

    invoke-static {v2, v3}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v2

    double-to-int v2, v2

    .line 5
    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    int-to-float v3, v3

    iget v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->j:I

    int-to-float v4, v4

    div-float/2addr v3, v4

    float-to-double v3, v3

    invoke-static {v3, v4}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v3

    double-to-int v3, v3

    .line 6
    new-instance v4, Landroid/graphics/Paint;

    invoke-direct {v4}, Landroid/graphics/Paint;-><init>()V

    const/4 v5, 0x1

    .line 7
    invoke-virtual {v4, v5}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 8
    new-instance v5, Landroid/graphics/RectF;

    invoke-direct {v5}, Landroid/graphics/RectF;-><init>()V

    const/4 v6, 0x0

    const/4 v7, 0x0

    :goto_0
    if-ge v7, v2, :cond_4

    const/4 v8, 0x0

    :goto_1
    if-ge v8, v3, :cond_3

    .line 9
    iget v9, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->j:I

    mul-int v10, v9, v7

    mul-int v11, v9, v8

    add-int/2addr v9, v10

    .line 10
    iget v12, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    if-le v9, v12, :cond_1

    move v9, v12

    .line 11
    :cond_1
    iget v12, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->j:I

    add-int/2addr v12, v11

    .line 12
    iget v13, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    if-le v12, v13, :cond_2

    move v12, v13

    .line 13
    :cond_2
    iget-object v13, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    invoke-virtual {v13, v10, v11}, Landroid/graphics/Bitmap;->getPixel(II)I

    move-result v13

    int-to-float v10, v10

    int-to-float v11, v11

    int-to-float v9, v9

    int-to-float v12, v12

    .line 14
    invoke-virtual {v5, v10, v11, v9, v12}, Landroid/graphics/RectF;->set(FFFF)V

    .line 15
    invoke-virtual {v4, v13}, Landroid/graphics/Paint;->setColor(I)V

    .line 16
    invoke-virtual {v1, v5, v4}, Landroid/graphics/Canvas;->drawOval(Landroid/graphics/RectF;Landroid/graphics/Paint;)V

    add-int/lit8 v8, v8, 0x1

    goto :goto_1

    :cond_3
    add-int/lit8 v7, v7, 0x1

    goto :goto_0

    .line 17
    :cond_4
    new-instance v2, Landroid/graphics/PorterDuffXfermode;

    sget-object v3, Landroid/graphics/PorterDuff$Mode;->DST_IN:Landroid/graphics/PorterDuff$Mode;

    invoke-direct {v2, v3}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {v4, v2}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    const/16 v2, 0xff

    .line 18
    invoke-virtual {v4, v2}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 19
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 20
    invoke-virtual {v1}, Landroid/graphics/Canvas;->save()I

    return-object v0

    :cond_5
    :goto_2
    const/4 v0, 0x0

    return-object v0
.end method

.method private h()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->t:Landroid/graphics/Matrix;

    invoke-virtual {v0}, Landroid/graphics/Matrix;->reset()V

    .line 2
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->P:F

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->K:F

    add-float/2addr v0, v1

    .line 3
    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->O:F

    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->L:F

    add-float/2addr v1, v2

    .line 4
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->t:Landroid/graphics/Matrix;

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    invoke-virtual {v2, v3, v3}, Landroid/graphics/Matrix;->postScale(FF)Z

    .line 5
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->t:Landroid/graphics/Matrix;

    invoke-virtual {v2, v0, v1}, Landroid/graphics/Matrix;->postTranslate(FF)Z

    .line 6
    iput v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->P:F

    .line 7
    iput v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->O:F

    return-void
.end method

.method private i()V
    .locals 4

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->getMosaicBitmap()Landroid/graphics/Bitmap;

    move-result-object v0

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->e:Landroid/graphics/Canvas;

    if-nez v1, :cond_3

    .line 3
    :cond_1
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    if-eqz v1, :cond_2

    .line 4
    invoke-virtual {v1}, Landroid/graphics/Bitmap;->recycle()V

    .line 5
    :cond_2
    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    sget-object v3, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v1, v2, v3}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v1

    iput-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    .line 6
    new-instance v1, Landroid/graphics/Canvas;

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    invoke-direct {v1, v2}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    iput-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->e:Landroid/graphics/Canvas;

    .line 7
    :cond_3
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->e:Landroid/graphics/Canvas;

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-virtual {v1, v0, v3, v3, v2}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 8
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 9
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->j()V

    return-void
.end method

.method private j()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->c:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 3
    :cond_0
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->getMosaicLayer()Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->c:Landroid/graphics/Bitmap;

    return-void
.end method

.method private k()V
    .locals 6

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    if-lez v0, :cond_1

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    if-lez v1, :cond_1

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->W:Lcom/esfile/screen/recorder/media/util/y;

    if-nez v2, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v2

    .line 3
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->W:Lcom/esfile/screen/recorder/media/util/y;

    invoke-virtual {v3}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result v3

    .line 4
    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->t:Landroid/graphics/Matrix;

    invoke-virtual {v4}, Landroid/graphics/Matrix;->reset()V

    int-to-float v2, v2

    int-to-float v0, v0

    const/high16 v4, 0x3f800000    # 1.0f

    mul-float v5, v0, v4

    div-float v5, v2, v5

    int-to-float v3, v3

    int-to-float v1, v1

    mul-float v4, v4, v1

    div-float v4, v3, v4

    .line 5
    invoke-static {v5, v4}, Ljava/lang/Math;->min(FF)F

    move-result v4

    .line 6
    iget-object v5, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->t:Landroid/graphics/Matrix;

    invoke-virtual {v5, v4, v4}, Landroid/graphics/Matrix;->postScale(FF)Z

    mul-float v1, v1, v4

    sub-float/2addr v3, v1

    const/high16 v1, 0x40000000    # 2.0f

    div-float/2addr v3, v1

    mul-float v0, v0, v4

    sub-float/2addr v2, v0

    div-float/2addr v2, v1

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->t:Landroid/graphics/Matrix;

    invoke-virtual {v0, v2, v3}, Landroid/graphics/Matrix;->postTranslate(FF)Z

    .line 8
    iput v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->S:F

    iput v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    .line 9
    iput v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->R:F

    iput v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->P:F

    .line 10
    iput v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->Q:F

    iput v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->O:F

    .line 11
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    int-to-float v0, v0

    mul-float v0, v0, v4

    iput v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->M:F

    .line 12
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    int-to-float v0, v0

    mul-float v0, v0, v4

    iput v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->N:F

    :cond_1
    :goto_0
    return-void
.end method

.method private l()V
    .locals 5

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    if-lez v0, :cond_4

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    if-gtz v0, :cond_0

    goto/16 :goto_0

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_1

    .line 3
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 4
    :cond_1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    sget-object v2, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v0, v1, v2}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    .line 5
    new-instance v0, Landroid/graphics/Canvas;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    invoke-direct {v0, v1}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->e:Landroid/graphics/Canvas;

    .line 6
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->i:Landroid/graphics/Bitmap;

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-virtual {v0, v1, v3, v3, v2}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->f:Landroid/graphics/Paint;

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-nez v0, :cond_2

    .line 8
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->f:Landroid/graphics/Paint;

    .line 9
    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 10
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->f:Landroid/graphics/Paint;

    new-instance v3, Landroid/graphics/PorterDuffXfermode;

    sget-object v4, Landroid/graphics/PorterDuff$Mode;->DST_IN:Landroid/graphics/PorterDuff$Mode;

    invoke-direct {v3, v4}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    .line 11
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->f:Landroid/graphics/Paint;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 12
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->f:Landroid/graphics/Paint;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setDither(Z)V

    .line 13
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->f:Landroid/graphics/Paint;

    sget-object v3, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 14
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->f:Landroid/graphics/Paint;

    sget-object v3, Landroid/graphics/Paint$Join;->ROUND:Landroid/graphics/Paint$Join;

    invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setStrokeJoin(Landroid/graphics/Paint$Join;)V

    .line 15
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->f:Landroid/graphics/Paint;

    sget-object v3, Landroid/graphics/Paint$Cap;->ROUND:Landroid/graphics/Paint$Cap;

    invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setStrokeCap(Landroid/graphics/Paint$Cap;)V

    .line 16
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->f:Landroid/graphics/Paint;

    new-instance v3, Landroid/graphics/CornerPathEffect;

    const/high16 v4, 0x41200000    # 10.0f

    invoke-direct {v3, v4}, Landroid/graphics/CornerPathEffect;-><init>(F)V

    invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setPathEffect(Landroid/graphics/PathEffect;)Landroid/graphics/PathEffect;

    .line 17
    :cond_2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->h:Landroid/graphics/Paint;

    if-nez v0, :cond_3

    .line 18
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->h:Landroid/graphics/Paint;

    .line 19
    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 20
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->h:Landroid/graphics/Paint;

    const/high16 v3, -0x10000

    invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setColor(I)V

    .line 21
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->h:Landroid/graphics/Paint;

    sget-object v3, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 22
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->h:Landroid/graphics/Paint;

    sget-object v3, Landroid/graphics/Paint$Join;->ROUND:Landroid/graphics/Paint$Join;

    invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setStrokeJoin(Landroid/graphics/Paint$Join;)V

    .line 23
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->h:Landroid/graphics/Paint;

    sget-object v3, Landroid/graphics/Paint$Cap;->ROUND:Landroid/graphics/Paint$Cap;

    invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setStrokeCap(Landroid/graphics/Paint$Cap;)V

    .line 24
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->h:Landroid/graphics/Paint;

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->v:I

    int-to-float v3, v3

    invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 25
    :cond_3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->g:Landroid/graphics/Paint;

    if-nez v0, :cond_4

    .line 26
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->g:Landroid/graphics/Paint;

    .line 27
    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 28
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->g:Landroid/graphics/Paint;

    new-instance v1, Landroid/graphics/PorterDuffXfermode;

    sget-object v3, Landroid/graphics/PorterDuff$Mode;->DST_IN:Landroid/graphics/PorterDuff$Mode;

    invoke-direct {v1, v3}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    .line 29
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->g:Landroid/graphics/Paint;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 30
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->g:Landroid/graphics/Paint;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setDither(Z)V

    .line 31
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->g:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    :cond_4
    :goto_0
    return-void
.end method

.method private m()V
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->A:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->A:Landroid/graphics/Bitmap;

    .line 4
    :cond_0
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->E:Z

    if-eqz v0, :cond_3

    .line 5
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    if-lez v0, :cond_3

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    if-gtz v1, :cond_1

    goto :goto_0

    .line 6
    :cond_1
    sget-object v2, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v0, v1, v2}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->A:Landroid/graphics/Bitmap;

    .line 7
    new-instance v0, Landroid/graphics/Canvas;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->A:Landroid/graphics/Bitmap;

    invoke-direct {v0, v1}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->B:Landroid/graphics/Canvas;

    const/high16 v1, -0x1000000

    .line 8
    invoke-virtual {v0, v1}, Landroid/graphics/Canvas;->drawColor(I)V

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->C:Landroid/graphics/Paint;

    const/4 v2, 0x1

    if-nez v0, :cond_2

    .line 10
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0, v2}, Landroid/graphics/Paint;-><init>(I)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->C:Landroid/graphics/Paint;

    .line 11
    sget-object v3, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 12
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->C:Landroid/graphics/Paint;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 13
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->C:Landroid/graphics/Paint;

    sget-object v3, Landroid/graphics/Paint$Join;->ROUND:Landroid/graphics/Paint$Join;

    invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setStrokeJoin(Landroid/graphics/Paint$Join;)V

    .line 14
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->C:Landroid/graphics/Paint;

    sget-object v3, Landroid/graphics/Paint$Cap;->ROUND:Landroid/graphics/Paint$Cap;

    invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setStrokeCap(Landroid/graphics/Paint$Cap;)V

    .line 15
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->C:Landroid/graphics/Paint;

    new-instance v3, Landroid/graphics/CornerPathEffect;

    const/high16 v4, 0x41200000    # 10.0f

    invoke-direct {v3, v4}, Landroid/graphics/CornerPathEffect;-><init>(F)V

    invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setPathEffect(Landroid/graphics/PathEffect;)Landroid/graphics/PathEffect;

    .line 16
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->C:Landroid/graphics/Paint;

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->k:I

    int-to-float v3, v3

    iget v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    div-float/2addr v3, v4

    invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 17
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->C:Landroid/graphics/Paint;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 18
    :cond_2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->D:Landroid/graphics/Paint;

    if-nez v0, :cond_3

    .line 19
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->D:Landroid/graphics/Paint;

    .line 20
    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 21
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->D:Landroid/graphics/Paint;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setDither(Z)V

    .line 22
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->D:Landroid/graphics/Paint;

    sget-object v2, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 23
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->D:Landroid/graphics/Paint;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    nop

    :cond_3
    :goto_0
    return-void
.end method

.method private n()V
    .locals 13

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    if-lez v0, :cond_2

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    if-lez v0, :cond_2

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->q:Landroid/graphics/RectF;

    if-nez v0, :cond_0

    goto/16 :goto_0

    .line 2
    :cond_0
    iget v1, v0, Landroid/graphics/RectF;->left:F

    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->P:F

    sub-float/2addr v1, v2

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    div-float/2addr v1, v3

    float-to-int v1, v1

    .line 3
    iget v4, v0, Landroid/graphics/RectF;->right:F

    sub-float/2addr v4, v2

    div-float/2addr v4, v3

    float-to-int v2, v4

    .line 4
    iget v4, v0, Landroid/graphics/RectF;->top:F

    iget v5, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->O:F

    sub-float/2addr v4, v5

    div-float/2addr v4, v3

    float-to-int v4, v4

    .line 5
    iget v0, v0, Landroid/graphics/RectF;->bottom:F

    sub-float/2addr v0, v5

    div-float/2addr v0, v3

    float-to-int v0, v0

    .line 6
    iget-boolean v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->u:Z

    if-eqz v3, :cond_1

    .line 7
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->g:Landroid/graphics/Paint;

    const/4 v5, 0x0

    invoke-virtual {v3, v5}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 8
    iget-object v6, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->e:Landroid/graphics/Canvas;

    int-to-float v1, v1

    int-to-float v3, v4

    int-to-float v2, v2

    int-to-float v0, v0

    iget-object v11, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->g:Landroid/graphics/Paint;

    move v7, v1

    move v8, v3

    move v9, v2

    move v10, v0

    invoke-virtual/range {v6 .. v11}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    .line 9
    iget-boolean v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->E:Z

    if-eqz v4, :cond_2

    .line 10
    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->D:Landroid/graphics/Paint;

    invoke-virtual {v4, v5}, Landroid/graphics/Paint;->setColor(I)V

    .line 11
    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->D:Landroid/graphics/Paint;

    new-instance v5, Landroid/graphics/PorterDuffXfermode;

    sget-object v6, Landroid/graphics/PorterDuff$Mode;->DST_IN:Landroid/graphics/PorterDuff$Mode;

    invoke-direct {v5, v6}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {v4, v5}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    .line 12
    iget-object v7, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->B:Landroid/graphics/Canvas;

    iget-object v12, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->D:Landroid/graphics/Paint;

    move v8, v1

    move v9, v3

    move v10, v2

    move v11, v0

    invoke-virtual/range {v7 .. v12}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    goto :goto_0

    .line 13
    :cond_1
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->D:Landroid/graphics/Paint;

    const/high16 v5, -0x1000000

    invoke-virtual {v3, v5}, Landroid/graphics/Paint;->setColor(I)V

    .line 14
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->D:Landroid/graphics/Paint;

    const/4 v5, 0x0

    invoke-virtual {v3, v5}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    .line 15
    iget-object v6, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->B:Landroid/graphics/Canvas;

    int-to-float v7, v1

    int-to-float v8, v4

    int-to-float v9, v2

    int-to-float v10, v0

    iget-object v11, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->D:Landroid/graphics/Paint;

    invoke-virtual/range {v6 .. v11}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    .line 16
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->g:Landroid/graphics/Paint;

    const/16 v1, 0xff

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 17
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->e:Landroid/graphics/Canvas;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2, v2, v5}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 18
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->e:Landroid/graphics/Canvas;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->A:Landroid/graphics/Bitmap;

    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->g:Landroid/graphics/Paint;

    invoke-virtual {v0, v1, v2, v2, v3}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    :cond_2
    :goto_0
    return-void
.end method

.method private o()V
    .locals 4

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    if-lez v0, :cond_2

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    if-lez v0, :cond_2

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->s:Landroid/graphics/Path;

    if-nez v0, :cond_0

    goto/16 :goto_0

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->f:Landroid/graphics/Paint;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->k:I

    int-to-float v1, v1

    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    div-float/2addr v1, v2

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 3
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->u:Z

    if-eqz v0, :cond_1

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->f:Landroid/graphics/Paint;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->e:Landroid/graphics/Canvas;

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->s:Landroid/graphics/Path;

    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->f:Landroid/graphics/Paint;

    invoke-virtual {v0, v2, v3}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V

    .line 6
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->E:Z

    if-eqz v0, :cond_2

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->C:Landroid/graphics/Paint;

    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->k:I

    int-to-float v2, v2

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    div-float/2addr v2, v3

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->C:Landroid/graphics/Paint;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->C:Landroid/graphics/Paint;

    new-instance v1, Landroid/graphics/PorterDuffXfermode;

    sget-object v2, Landroid/graphics/PorterDuff$Mode;->DST_IN:Landroid/graphics/PorterDuff$Mode;

    invoke-direct {v1, v2}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    .line 10
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->B:Landroid/graphics/Canvas;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->s:Landroid/graphics/Path;

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->C:Landroid/graphics/Paint;

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V

    goto :goto_0

    .line 11
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->C:Landroid/graphics/Paint;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->k:I

    int-to-float v1, v1

    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    div-float/2addr v1, v2

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 12
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->C:Landroid/graphics/Paint;

    const/high16 v1, -0x1000000

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 13
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->C:Landroid/graphics/Paint;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    .line 14
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->B:Landroid/graphics/Canvas;

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->s:Landroid/graphics/Path;

    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->C:Landroid/graphics/Paint;

    invoke-virtual {v0, v2, v3}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V

    .line 15
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->f:Landroid/graphics/Paint;

    const/16 v2, 0xff

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 16
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->e:Landroid/graphics/Canvas;

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3, v3, v1}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 17
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->e:Landroid/graphics/Canvas;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->A:Landroid/graphics/Bitmap;

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->f:Landroid/graphics/Paint;

    invoke-virtual {v0, v1, v3, v3, v2}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    :cond_2
    :goto_0
    return-void
.end method

.method private setState(Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->H:Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->f()V

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->j()V

    const/4 v0, 0x0

    .line 3
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->U:Z

    .line 4
    invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V

    return-void
.end method

.method public b()Z
    .locals 1

    .line 40
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->U:Z

    return v0
.end method

.method public c()Z
    .locals 2

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->S:F

    cmpl-float v0, v0, v1

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public d()Z
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->i:Landroid/graphics/Bitmap;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 3
    iput-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->i:Landroid/graphics/Bitmap;

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->c:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_1

    .line 5
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 6
    iput-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->c:Landroid/graphics/Bitmap;

    .line 7
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_2

    .line 8
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 9
    iput-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    .line 10
    :cond_2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->A:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_3

    .line 11
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 12
    iput-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->A:Landroid/graphics/Bitmap;

    .line 13
    :cond_3
    sget-object v0, Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;->NONE:Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->setState(Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;)V

    .line 14
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->t:Landroid/graphics/Matrix;

    invoke-virtual {v0}, Landroid/graphics/Matrix;->reset()V

    const/high16 v0, 0x3f800000    # 1.0f

    .line 15
    iput v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    const/4 v0, 0x0

    .line 16
    iput v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->P:F

    .line 17
    iput v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->O:F

    const/4 v0, 0x1

    return v0
.end method

.method public e()V
    .locals 1

    const/high16 v0, 0x3f800000    # 1.0f

    .line 1
    iput v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    const/4 v0, 0x0

    .line 2
    iput v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->P:F

    .line 3
    iput v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->O:F

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->k()V

    .line 5
    invoke-virtual {p0}, Landroid/view/ViewGroup;->postInvalidate()V

    return-void
.end method

.method public getGridWidth()I
    .locals 1

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->j:I

    return v0
.end method

.method public getImageDisplayRect()Landroid/graphics/Rect;
    .locals 7

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    if-lez v0, :cond_1

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    if-gtz v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    new-instance v0, Landroid/graphics/Rect;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->R:F

    float-to-int v2, v1

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->Q:F

    float-to-int v4, v3

    iget v5, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    int-to-float v5, v5

    iget v6, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->S:F

    mul-float v5, v5, v6

    add-float/2addr v1, v5

    float-to-int v1, v1

    iget v5, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    int-to-float v5, v5

    mul-float v5, v5, v6

    add-float/2addr v3, v5

    float-to-int v3, v3

    invoke-direct {v0, v2, v4, v1, v3}, Landroid/graphics/Rect;-><init>(IIII)V

    return-object v0

    :cond_1
    :goto_0
    const/4 v0, 0x0

    return-object v0
.end method

.method public getImageZoomRect()Landroid/graphics/RectF;
    .locals 5

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    if-lez v0, :cond_1

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    if-gtz v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    new-instance v0, Landroid/graphics/RectF;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->P:F

    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->O:F

    iget v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->M:F

    add-float/2addr v3, v1

    iget v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->N:F

    add-float/2addr v4, v2

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/RectF;-><init>(FFFF)V

    return-object v0

    :cond_1
    :goto_0
    const/4 v0, 0x0

    return-object v0
.end method

.method public getMosaicBitmap()Landroid/graphics/Bitmap;
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    const/4 v1, 0x0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->c:Landroid/graphics/Bitmap;

    if-nez v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    sget-object v3, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v0, v2, v3}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 3
    new-instance v2, Landroid/graphics/Canvas;

    invoke-direct {v2, v0}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 4
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->c:Landroid/graphics/Bitmap;

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4, v4, v1}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 5
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    invoke-virtual {v2, v3, v4, v4, v1}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 6
    invoke-virtual {v2}, Landroid/graphics/Canvas;->save()I

    return-object v0

    :cond_1
    :goto_0
    return-object v1
.end method

.method public getStrokeColor()I
    .locals 1

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->m:I

    return v0
.end method

.method public getStrokeWidth()I
    .locals 1

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->l:I

    return v0
.end method

.method protected onDetachedFromWindow()V
    .locals 0

    .line 1
    invoke-super {p0}, Landroid/view/ViewGroup;->onDetachedFromWindow()V

    .line 2
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d()Z

    return-void
.end method

.method public onDraw(Landroid/graphics/Canvas;)V
    .locals 3

    .line 1
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->onDraw(Landroid/graphics/Canvas;)V

    .line 2
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->w:I

    if-ltz v0, :cond_0

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->x:I

    if-gez v0, :cond_1

    .line 3
    :cond_0
    invoke-virtual {p1}, Landroid/graphics/Canvas;->getMaximumBitmapWidth()I

    move-result v0

    iput v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->w:I

    .line 4
    invoke-virtual {p1}, Landroid/graphics/Canvas;->getMaximumBitmapHeight()I

    move-result v0

    iput v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->x:I

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->y:Ljava/lang/Object;

    monitor-enter v0

    .line 6
    :try_start_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->y:Ljava/lang/Object;

    invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V

    .line 7
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 8
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->c:Landroid/graphics/Bitmap;

    const/4 v1, 0x0

    if-eqz v0, :cond_2

    .line 9
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->t:Landroid/graphics/Matrix;

    invoke-virtual {p1, v0, v2, v1}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Matrix;Landroid/graphics/Paint;)V

    .line 10
    :cond_2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_3

    .line 11
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->t:Landroid/graphics/Matrix;

    invoke-virtual {p1, v0, v2, v1}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Matrix;Landroid/graphics/Paint;)V

    .line 12
    :cond_3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->q:Landroid/graphics/RectF;

    if-eqz v0, :cond_4

    .line 13
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->p:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawRect(Landroid/graphics/RectF;Landroid/graphics/Paint;)V

    :cond_4
    return-void

    :catchall_0
    move-exception p1

    .line 14
    :try_start_1
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw p1
.end method

.method protected onLayout(ZIIII)V
    .locals 1

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    if-lez v0, :cond_3

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    if-gtz v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->W:Lcom/esfile/screen/recorder/media/util/y;

    if-eqz v0, :cond_1

    if-eqz p1, :cond_2

    .line 3
    :cond_1
    new-instance p1, Lcom/esfile/screen/recorder/media/util/y;

    sub-int/2addr p4, p2

    sub-int/2addr p5, p3

    invoke-direct {p1, p4, p5}, Lcom/esfile/screen/recorder/media/util/y;-><init>(II)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->W:Lcom/esfile/screen/recorder/media/util/y;

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->k()V

    .line 5
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->y:Ljava/lang/Object;

    monitor-enter p1

    .line 6
    :try_start_0
    iget-object p2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->y:Ljava/lang/Object;

    invoke-virtual {p2}, Ljava/lang/Object;->notifyAll()V

    .line 7
    monitor-exit p1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 8
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->G:Lcom/esfile/screen/recorder/picture/ui/MosaicView$b;

    if-eqz p1, :cond_2

    .line 9
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->getImageDisplayRect()Landroid/graphics/Rect;

    move-result-object p2

    invoke-interface {p1, p2}, Lcom/esfile/screen/recorder/picture/ui/MosaicView$b;->a(Landroid/graphics/Rect;)V

    :cond_2
    return-void

    :catchall_0
    move-exception p2

    .line 10
    :try_start_1
    monitor-exit p1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw p2

    :cond_3
    :goto_0
    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 6

    .line 1
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->onTouchEvent(Landroid/view/MotionEvent;)Z

    .line 2
    invoke-virtual {p0}, Landroid/view/ViewGroup;->isEnabled()Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_5

    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->z:Z

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->W:Lcom/esfile/screen/recorder/media/util/y;

    if-eqz v0, :cond_5

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    if-lez v0, :cond_5

    iget v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    if-gtz v0, :cond_0

    goto :goto_1

    .line 3
    :cond_0
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b(Landroid/view/MotionEvent;)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->H:Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;

    sget-object v2, Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;->NONE:Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;

    if-ne v0, v2, :cond_3

    .line 5
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    .line 6
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    .line 7
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v3

    .line 8
    iget-object v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->o:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;

    sget-object v5, Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;->GRID:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;

    if-ne v4, v5, :cond_1

    .line 9
    invoke-direct {p0, v0, v2, v3}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b(IFF)V

    goto :goto_0

    .line 10
    :cond_1
    sget-object v5, Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;->PATH:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;

    if-ne v4, v5, :cond_2

    .line 11
    iget v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->P:F

    sub-float/2addr v2, v4

    iget v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    div-float/2addr v2, v4

    iget v5, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->O:F

    sub-float/2addr v3, v5

    div-float/2addr v3, v4

    invoke-direct {p0, v0, v2, v3}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->c(IFF)V

    goto :goto_0

    .line 12
    :cond_2
    sget-object v5, Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;->BRUSH:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;

    if-ne v4, v5, :cond_3

    .line 13
    iget v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->P:F

    sub-float/2addr v2, v4

    iget v4, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    div-float/2addr v2, v4

    iget v5, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->O:F

    sub-float/2addr v3, v5

    div-float/2addr v3, v4

    invoke-direct {p0, v0, v2, v3}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a(IFF)V

    .line 14
    :cond_3
    :goto_0
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I

    move-result v0

    if-eq v0, v1, :cond_4

    .line 15
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I

    move-result p1

    const/4 v0, 0x3

    if-ne p1, v0, :cond_5

    .line 16
    :cond_4
    sget-object p1, Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;->NONE:Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->setState(Lcom/esfile/screen/recorder/picture/ui/MosaicView$State;)V

    .line 17
    invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V

    .line 18
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->J:Landroid/graphics/PointF;

    const/high16 v0, -0x40800000    # -1.0f

    iput v0, p1, Landroid/graphics/PointF;->x:F

    .line 19
    iput v0, p1, Landroid/graphics/PointF;->y:F

    :cond_5
    :goto_1
    return v1
.end method

.method public setEffect(Lcom/esfile/screen/recorder/picture/ui/MosaicView$Effect;)V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->n:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Effect;

    if-ne v0, p1, :cond_0

    .line 2
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "duplicated effect "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, "MosaicView"

    invoke-static {v0, p1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    return-void

    .line 3
    :cond_0
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->n:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Effect;

    .line 4
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->c:Landroid/graphics/Bitmap;

    if-eqz p1, :cond_1

    .line 5
    invoke-virtual {p1}, Landroid/graphics/Bitmap;->recycle()V

    .line 6
    :cond_1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->getMosaicLayer()Landroid/graphics/Bitmap;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->c:Landroid/graphics/Bitmap;

    .line 7
    invoke-virtual {p0}, Landroid/view/ViewGroup;->postInvalidate()V

    return-void
.end method

.method public setErase(Z)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/UnsupportedOperationException;
        }
    .end annotation

    if-eqz p1, :cond_1

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->E:Z

    if-eqz v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    new-instance p1, Ljava/lang/UnsupportedOperationException;

    const-string v0, "Erase is unsupported"

    invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_1
    :goto_0
    xor-int/lit8 p1, p1, 0x1

    .line 3
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->u:Z

    return-void
.end method

.method public setGridWidth(I)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a(I)I

    move-result p1

    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->j:I

    return-void
.end method

.method public setMode(Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;)V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->o:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;

    if-ne v0, p1, :cond_0

    .line 2
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "duplicated mode "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, "MosaicView"

    invoke-static {v0, p1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    return-void

    .line 3
    :cond_0
    sget-object v0, Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;->PATH:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;

    if-ne p1, v0, :cond_1

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->i()V

    .line 5
    :cond_1
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->o:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;

    return-void
.end method

.method public setMosaicColor(I)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->r:I

    return-void
.end method

.method public setOnImageDisplayRectChangedListener(Lcom/esfile/screen/recorder/picture/ui/MosaicView$b;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->G:Lcom/esfile/screen/recorder/picture/ui/MosaicView$b;

    return-void
.end method

.method public setPathWidth(I)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a(I)I

    move-result p1

    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->k:I

    return-void
.end method

.method public setSrcBitmap(Landroid/graphics/Bitmap;)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalThreadStateException;
        }
    .end annotation

    .line 1
    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    if-eq v0, v1, :cond_4

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->z:Z

    .line 3
    :try_start_0
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d()Z

    .line 4
    invoke-virtual {p0}, Landroid/view/ViewGroup;->postInvalidate()V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->y:Ljava/lang/Object;

    monitor-enter v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 6
    :goto_0
    :try_start_1
    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->w:I

    const-wide/16 v2, 0x32

    if-ltz v1, :cond_2

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->x:I

    if-gez v1, :cond_0

    goto/16 :goto_2

    .line 7
    :cond_0
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    .line 8
    :try_start_2
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->i:Landroid/graphics/Bitmap;

    .line 9
    invoke-virtual {p1}, Landroid/graphics/Bitmap;->getWidth()I

    move-result p1

    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    .line 10
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->i:Landroid/graphics/Bitmap;

    invoke-virtual {p1}, Landroid/graphics/Bitmap;->getHeight()I

    move-result p1

    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    const-string p1, "MosaicView"

    .line 11
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Screen size ("

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/esfile/screen/recorder/utils/g;->i(Landroid/content/Context;)I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, "x"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 12
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/esfile/screen/recorder/utils/g;->f(Landroid/content/Context;)I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, ")"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 13
    invoke-static {p1, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    const-string p1, "MosaicView"

    .line 14
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Image size ("

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, "x"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, ")"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p1, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 15
    iget-boolean p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->F:Z

    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->E:Z

    .line 16
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->l()V

    .line 17
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->m()V

    .line 18
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->j()V

    const/4 p1, 0x0

    .line 19
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->W:Lcom/esfile/screen/recorder/media/util/y;

    .line 20
    new-instance p1, Lcom/esfile/screen/recorder/picture/ui/MosaicView$a;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView$a;-><init>(Lcom/esfile/screen/recorder/picture/ui/MosaicView;)V

    invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->post(Ljava/lang/Runnable;)Z

    .line 21
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->y:Ljava/lang/Object;

    monitor-enter p1
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    .line 22
    :goto_1
    :try_start_3
    invoke-virtual {p0}, Landroid/view/ViewGroup;->isAttachedToWindow()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->W:Lcom/esfile/screen/recorder/media/util/y;

    if-nez v0, :cond_1

    .line 23
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->y:Ljava/lang/Object;

    invoke-virtual {v0, v2, v3}, Ljava/lang/Object;->wait(J)V

    goto :goto_1

    .line 24
    :cond_1
    monitor-exit p1
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    .line 25
    :try_start_4
    invoke-virtual {p0}, Landroid/view/ViewGroup;->isAttachedToWindow()Z

    move-result p1

    if-nez p1, :cond_3

    .line 26
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->d()Z
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0

    goto :goto_3

    :catchall_0
    move-exception v0

    .line 27
    :try_start_5
    monitor-exit p1
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    :try_start_6
    throw v0
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_0

    .line 28
    :cond_2
    :goto_2
    :try_start_7
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->y:Ljava/lang/Object;

    invoke-virtual {v1, v2, v3}, Ljava/lang/Object;->wait(J)V

    goto/16 :goto_0

    :catchall_1
    move-exception p1

    .line 29
    monitor-exit v0
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_1

    :try_start_8
    throw p1
    :try_end_8
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_0

    :catch_0
    :cond_3
    :goto_3
    const/4 p1, 0x1

    .line 30
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->z:Z

    return-void

    .line 31
    :cond_4
    new-instance p1, Ljava/lang/IllegalThreadStateException;

    const-string v0, "setSrcPath couldn\'t run on main thread!"

    invoke-direct {p1, v0}, Ljava/lang/IllegalThreadStateException;-><init>(Ljava/lang/String;)V

    goto :goto_5

    :goto_4
    throw p1

    :goto_5
    goto :goto_4
.end method

.method public setSrcPath(Ljava/lang/String;)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalThreadStateException;
        }
    .end annotation

    .line 1
    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    if-eq v0, v1, :cond_1

    .line 2
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 3
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_0

    .line 4
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "invalid file path "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, "MosaicView"

    invoke-static {v0, p1}, Lcom/esfile/screen/recorder/utils/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-void

    .line 5
    :cond_0
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/esfile/screen/recorder/utils/g;->i(Landroid/content/Context;)I

    move-result v0

    invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/esfile/screen/recorder/utils/g;->f(Landroid/content/Context;)I

    move-result v1

    mul-int v0, v0, v1

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->w:I

    iget v2, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->x:I

    .line 6
    invoke-static {p1, v0, v1, v2}, Lcom/esfile/screen/recorder/utils/d;->a(Ljava/lang/String;III)Landroid/graphics/Bitmap;

    move-result-object p1

    .line 7
    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->setSrcBitmap(Landroid/graphics/Bitmap;)V

    return-void

    .line 8
    :cond_1
    new-instance p1, Ljava/lang/IllegalThreadStateException;

    const-string v0, "setSrcPath couldn\'t run on main thread!"

    invoke-direct {p1, v0}, Ljava/lang/IllegalThreadStateException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public setStrokeColor(I)V
    .locals 1

    .line 1
    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->m:I

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->p:Landroid/graphics/Paint;

    invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColor(I)V

    return-void
.end method

.method public setStrokeWidth(I)V
    .locals 2

    .line 1
    iput p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->l:I

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->p:Landroid/graphics/Paint;

    int-to-float p1, p1

    iget v1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->T:F

    div-float/2addr p1, v1

    invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    return-void
.end method

.method public setSupportErase(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->F:Z

    return-void
.end method
